import  os


def getExtension(filepath):
    return os.path.splitext(filepath)[0]
print(getExtension('autorun_log.txt'))